package br.com.JZSolution.persistencia;

import java.util.List;

import javax.persistence.EntityManager;

import br.com.JZSolution.modelo.Funcionario;

public class FuncionarioDao extends SuperDao<Funcionario> {

	public FuncionarioDao(EntityManager em) {
		this.em = em;
	}
	
	@SuppressWarnings("unchecked")
	@Override
	public List<Funcionario> listar() {
		return em.createQuery("SELECT a FROM Funcionario a ORDER BY a.nome").getResultList();
	}

	@Override
	public void remover(Long id) {
		// TODO Auto-generated method stub
		
	}

}
